/*
 * @Author: yangzonglong
 * @Date: 2021-02-22 13:49:17
 * @version: v1.0.0
 * @Descripttion: 类型声明
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-31 09:13:56
 * @Auditor:
 */
export interface ControlProps {
  id: string;
  name?: string;
  type: string;
  children?: ControlProps[];
  options?: Record<string, any>;
}

export interface ViewProps {
  structure: {
    // 设计的结构
    list: ControlProps[];
  };
  data?: Record<string, any>; // 填写的答案
  formInfo?: {
    formDesc?: string;
    formName?: string;
  }; // 填写的答案
  disabled?: boolean; // 禁用
  editFields?: string[]; // disabled 为true时，哪些字段可编辑
  hideFields?: string[]; // 隐藏字段
  onValuesChange?: (v1: any, v2: any) => void;
}
